package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author long
 * @since 2022-10-12
 */
@Getter
@Setter
@ToString
  @TableName("t_order")
@ApiModel(value = "Order对象")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("订单表 主键 自增")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("逻辑删除,不为null,默认为0，(0:未删除 1:已删除)")
      @TableLogic
      private String isDeleted;

      @ApiModelProperty("订单状态(0:进行中 1:待缴费 2:已缴费 3:已完成 4:已退款)")
      private String status;

      @ApiModelProperty("驶离时间")
      private Date leaveTime;

      @ApiModelProperty("订单金额")
      private BigDecimal money;

      @ApiModelProperty("支付金额")
      private BigDecimal payMoney;

      @ApiModelProperty("支付时间")
      private Date payTime;

      @ApiModelProperty("支付方式（0：微信 1：支付宝 2：巡检员收款）")
      private String payWay;

      @ApiModelProperty("车辆id")
      private Long carId;

      @ApiModelProperty("巡检员id")
      private Long patrolId;

      @ApiModelProperty("泊位id")
      private Long spaceId;

      @ApiModelProperty("创建时间/驶入时间")
        @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
